package com.jifen.dynamic.vo;

import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class DynamicVo {

    private Integer id;

    private String coverPic;

    private String title;

    private String content;

    private Integer isLine;

    private String detailUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCoverPic() {
        if(StringUtils.isNotBlank(coverPic)){
            return Global.getConfig("cdnUrl") + coverPic;
        }
        return coverPic;
    }

    public void setCoverPic(String coverPic) {
        this.coverPic = coverPic;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getIsLine() {
        return isLine;
    }

    public void setIsLine(Integer isLine) {
        this.isLine = isLine;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }
}
